<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
		<title><?=$title; ?></title>
        <? if ($nowmenu=="manager"){?>
           <link  href="<?php echo base_url();?>css/dashboard.css" rel="stylesheet" type="text/css" />
        <? }else{?> 
		<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>/css/admin.css" />
        <? }?>
		<script type="text/javascript" src="<?php echo base_url();?>/script/jquery-1.7.1.min.js"></script>
	</head>
	<body>
		<div id="contentright">
		
		</div>
          <?php 
          	function isActive($comp,$fix){
				if ($comp == $fix){
          			echo 'class="active"';
          		}
			}
			
          ?>
          
            <div id="main">
        <div id="header">
            <a href="#" class="logo"><img src="<?php echo base_url();?>/img/UBE-logo.png" width="126" height="111" alt="" /></a>          <div id="search">

          <div id="searchblank">
            <div id="searchinput">
             Welcome, admin
            </div>
          
            <div id="advancesearch"> 	<a href="<?php echo site_url('login/logout');?>" class="advancesearch">Logout</a></div>
          </div>
        </div>
        
		
				<ul id="top-navigation">
                
					<? if($role_id==1){ ?>
              	<li>
						<a href="<?php echo site_url('manager/dashboard');?>" <?php isActive($nowmenu, 'dashboard')?>>Dashboard</a>
					</li>
					<li>
						<a href="<?php echo site_url('users');?>" <?php isActive($nowmenu, 'members')?>>Members</a>
					</li>
					<li>
						<a href="<?php echo site_url('land');?>" <?php isActive($nowmenu, 'land')?>>Lands</a>
					</li>
					<li>
						<a href="<?php echo site_url('manager/realtime');?>" <?php isActive($nowmenu, 'supplies')?>>Supplies</a>
					</li>
					<li>
						<a href="#">Statistics</a>
					</li>
					<li>
						<a href="<?php echo site_url('setting/role_index');?>" <?php isActive($nowmenu, 'setting')?>>Settings</a>
					</li>
			<?}else if($role_id==5){?>
					<li>
						<a href="<?php echo site_url('land');?>" class="active">Lands</a>
					</li>
			<?}else if($role_id==6){?>
					<li>
						<a href="<?php echo site_url('manager/realtime');?>" class="active">Supplies</a>
					</li>
			<?}?>
				
				</ul>
			</div>
